<%@ page language="java" contentType="text/html; charset=gb2312"
	pageEncoding="UTF-8"%>
<%@ page import="cal.*,java.util.*"%>

<html>
<head>
<%
  String query= request.getParameter("query");
  if(query!=null)
	query = new String(query.getBytes("ISO8859-1"), "gb2312");
  else 
    query="";
  String size= request.getParameter("size");
  if(size!=null)
    size = new String(size.getBytes("ISO8859-1"), "gb2312");
  else 
	    size="";
  String dis= request.getParameter("dis");
  if(dis!=null)
     dis = new String(dis.getBytes("ISO8859-1"), "gb2312");
  else 
	 dis="";
%>
    <title>Picture Search</title>
</head>
<body>
<br />
<center>
  <form method="post"  action="result.jsp">
<table border="0" >
	<tr>
		<td>
		  <table border="0"  align="center">
			<tr>
				<td align="center"><img src="temp.jpg" alt="Welcome to Pictuer Search!"  width="300"> 	</td>
			</tr>
			<tr>
				<td align="left"> 
				<input  type="text"  name="query" size="45" value="<% if (!query.isEmpty()) out.print(query.replaceAll("\\s+", ""));%>"> </td>
				<td align="right"> <input type="submit" name="submit" value="Search" ></td>
			</tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td>
		<table border="0" align="center">
			<tr>
			<%
			out.println("<td style=\"width:30px;text-align:top;\">");
			out.println("<td> <input type=\"radio\" name=\"size\" value=\"全部图片\" checked='checked'> 全部图片</td>	");
			out.println("<td> <input type=\"radio\" name=\"size\" value=\"大图片\"> 大图片</td> ");
			out.println("<td> <input type=\"radio\" name=\"size\" value=\"中图片\"> 中图片</td> 	");
			out.println("<td> <input type=\"radio\" name=\"size\" value=\"小图片\"> 小图片</td> 	");				
			out.println("</td>");	
			out.println("<td style=\"width:25px;text-align:top;\">");
			%>
		    </tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>
		<table border="0" align="right">
			<tr align="right">
				<td align="right""><b><font
					size="2" face="arial" color="gray">小组成员： 李莉 吴裔慧 </font></b></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
    </form>
</center>
</body>
</html>